home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / internet / nos / nos-ppp / docs / dialer.txt < prev    next >
Text File  |  1994-05-28  |  2KB  |  81 lines

  1. KA9Q modified dialer (version 911229 (gt 1.3)).
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. The new dialer script file is composed of two sections: "configure" and
  5. "execute".  As its name suggests, the "configure" section consists of
  6. various configuration commands.  The execute section is much the same as
  7. the current dialer script file but has some new commands.
  8.  
  9. The configure commands are as follows:
  10.  
  11. configure:            Specifies the start of the configuration
  12.                     section.  Must be the first non-comment in the
  13.                     file.
  14. init <string>        Specifies the modem initialization string.
  15. dial_cmd <string>    Specifies the modem dial command.
  16. ld_code <string>    Specifies a long distance code.
  17. number <string>        Specifies a telephone number.  There may be
  18.                     multiple "number" commands.  The numbers will be
  19.                     used in turn if retries are specified.
  20. retries <count>        Specifies the number of times the execute script
  21.                     is to be retried if it fails.  Default 1.
  22.  
  23. The execute commands are the existing dialer script commands plus the
  24. following:
  25.  
  26. execute:            Specifies the start of the execution section. 
  27.                     This must precede any other execution section
  28.                     commands.
  29. init                Initialize the modem.
  30. dial                Dial the next number in the list.
  31. cwait <milliseconds> [ <success string> <failure string> 
  32.         [<failure string> ...] ] [ speed ]
  33.                     The same as the original "wait" command except
  34.                     that if <failure string> is seen before <success
  35.                     string> then the dial attempt will be deemed to
  36.                     have failed and the dialer program will either
  37.                     retry the execute script from the start or give
  38.                     up (depending on the retry count).
  39.  
  40. Here's an example dialer script:
  41.  
  42. ----------------------------------------------------------------------------
  43. #
  44. configure:
  45. #
  46. init "ATZ"
  47. dial_cmd "ATDT"
  48. ld_code "131,,0123456789012"
  49. number "0813466209"
  50. number "0813490016"
  51. retries 5
  52. #
  53. execute:
  54. #
  55. # Toggle DTR.
  56. control down
  57. wait 2000
  58. control up
  59. wait 2000
  60. #
  61. # Initialize the modem.
  62. init
  63. wait 3000 "OK"
  64. #
  65. # Dial and wait for connection.
  66. dial
  67. cwait 45000 "CONNECT" "BUSY" "NO CARRIER"
  68. #
  69. # Now log in.
  70. wait 5000 "gin:"
  71. wait 1000
  72. send "slip\r"
  73. wait 10000 "word:"
  74. send "sl8250\r"
  75. wait 20000 "sliplog:"
  76. send "rundart\r"
  77. ----------------------------------------------------------------------------
  78.  
  79. Giles Todd (gt@demon.co.uk)
  80. 6 May 1992
  81.